<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script>
    var currentId=null;
    function openRightdistribution(){
       if(currentId==null)return false;
		var url = "${ctx}/common_dataRightAction.do?method=initEmployeeRightMain&userId="+currentId;
		top.windowOpen(url,"openRightdistribution","",540,550);
	}

    function freshFrame(){
		document.forms.ec.ec_p.value=document.getElementById("ec_p").value;
		document.forms.ec.submit();
		currentId=null;
	}

	function setCurrentId(id){
	currentId=id;
	}
</script>
</head>
<body onload="init()">
<div style="overflow:auto; height:355px;">
	<ec:ceTable items="EmployeeList"
			action="${ctx}/common_dataRightAction.do?method=queryEmployeeList"
			var="employeeItem"
			view="pmsview"
			styleClass="gridData2"
			rowsDisplayed="15" >
			<ec:ceRow styleClass="grid" onclick="setCurrentId('${employeeItem.userId}');" onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
				<ec:ceColumn headerCell="pmsHeadrCell" title="用户名" property="userCode"  width="15%" styleClass="align_left" />
				<ec:ceColumn headerCell="pmsHeadrCell" title="真实姓名" property="employeeName" width="12%" styleClass="align_left"/>
				<ec:ceColumn headerCell="pmsHeadrCell" title="性 别" property="sexDisplay" width="10%" styleClass="align_left"/>
				<ec:ceColumn headerCell="pmsHeadrCell" title="证件类型" property="idTypeDisplay"  width="23%" styleClass="align_left"/>
				<ec:ceColumn headerCell="pmsHeadrCell" title="证件号码" property="idNo"  width="25%" styleClass="align_left"/>
				<ec:ceColumn headerCell="pmsHeadrCell" title="部 门" property="deptName"  width="12%" styleClass="align_left"/>

			</ec:ceRow>
			<ec:parameter name ="userCode" value=""></ec:parameter>
			<ec:parameter name = "employeeName" value=""></ec:parameter>
	</ec:ceTable>
</div>

<div id="quick_rightmenu" style="display:none;"  oncontextmenu="return false" class="quick_rightmenu"onMouseOver="MM_showHideLayers('quick_rightmenu')"  onMouseOut="MM_showHideLayers('quick_rightmenu')">
<table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">

	<tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">

     	    <tr>
            <td class="quickMenu_toolbarico"><a href="#"  onclick="openRightdistribution();return false;" onFocus="this.blur()"><img src="${ctx}/images/ico_amend.gif" border="0" align="absbottom" alt="修 改"/>&nbsp;修 改</a></td>
          </tr>

      </table></td>
    </tr>
  </table>
<script type="text/javascript">

	var div1=document.getElementById('quick_rightmenu');
	if(div1.getElementsByTagName("tr").length==1){
	div1.innerHTML="";
	}
</script>
</div>
</body>
<script>
function init()
{
	var obj = findFrame('main');
	var n = obj.$F('employeeName');
	var t = obj.$F('userCode');
	$('employeeName').value = n;
	$('userCode').value = t;
}
</script>
</html>
